<script setup lang="ts">
  import useCounterStore from '@/store/counter';
  const counterStore = useCounterStore();

  function changeCounter() {
    counterStore.changeCounterAction(100)
  }
</script>

<template>
  <div>主页面: {{ counterStore.counter }} - {{  counterStore.doubleCounter }}

    <el-button @click="changeCounter" type="primary">修改counter</el-button>
  </div>

</template>

<style lang="less" scoped>

</style>
